package com.sxbang.friday.controller.api;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author :ali
 * @date :2020/1/27 13:55
 * @description：
 * @modified By:
 * @version: 1.0.0
 */
@Controller
@RequestMapping("${api-url}")
public class ApiController {

    /**
     * 跳转对应页面
     * @param modelAndView
     * @param pageName
     * @return
     */
    @RequestMapping("/getPage")
    public ModelAndView getPage(ModelAndView modelAndView,String pageName){
        modelAndView.setViewName(pageName);
        return modelAndView;
    }
}
